package pt.nmfa.peste.entity;

// Generated Mar 5, 2011 1:52:20 PM by Hibernate Tools 3.3.0.GA

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;

/**
 * StatusScriptParms generated by hbm2java
 */
@Entity
@Table(name = "statusScriptParms", catalog = "HomeDB")
public class StatusScriptParms implements java.io.Serializable {

	private Integer statusScriptParmsId;
	private StatusActionsScript statusActionsScript;
	private String scriptParmName;
	private String scriptParmValue;

	public StatusScriptParms() {
	}

	public StatusScriptParms(StatusActionsScript statusActionsScript,
			String scriptParmName, String scriptParmValue) {
		this.statusActionsScript = statusActionsScript;
		this.scriptParmName = scriptParmName;
		this.scriptParmValue = scriptParmValue;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "statusScriptParmsId", unique = true, nullable = false)
	public Integer getStatusScriptParmsId() {
		return this.statusScriptParmsId;
	}

	public void setStatusScriptParmsId(Integer statusScriptParmsId) {
		this.statusScriptParmsId = statusScriptParmsId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "statusActionScriptId", nullable = false)
	@NotNull
	public StatusActionsScript getStatusActionsScript() {
		return this.statusActionsScript;
	}

	public void setStatusActionsScript(StatusActionsScript statusActionsScript) {
		this.statusActionsScript = statusActionsScript;
	}

	@Column(name = "scriptParmName", nullable = false, length = 32)
	@NotNull
	@Length(max = 32)
	public String getScriptParmName() {
		return this.scriptParmName;
	}

	public void setScriptParmName(String scriptParmName) {
		this.scriptParmName = scriptParmName;
	}

	@Column(name = "scriptParmValue", nullable = false, length = 100)
	@NotNull
	@Length(max = 100)
	public String getScriptParmValue() {
		return this.scriptParmValue;
	}

	public void setScriptParmValue(String scriptParmValue) {
		this.scriptParmValue = scriptParmValue;
	}

}
